package com.metagurukul.metaspace.models.beans;

/**
 * @author ritesh created date : 5/10/2012
 */
public class Department {
	private int deptId = -1;
	private String deptName = null;

	/**
	 * @return deptId int
	 */
	public int getDeptId() {
		return deptId;
	}

	/**
	 * @param deptId
	 *            int
	 */
	public void setDeptId(int deptId) {
		this.deptId = deptId;
	}

	/**
	 * @return deptName String
	 */
	public String getDeptName() {
		return deptName;
	}

	/**
	 * @param deptName
	 *            String
	 */
	public void setDeptName(String deptName) {
		if (this.deptName != null && 50 < this.deptName.length()) {
			throw new StringIndexOutOfBoundsException(
					"Department name size too long");
		}
		this.deptName = deptName;
	}

}
